/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import request from '@/utils/request';

// 获取订单退款列表
export async function getRefundApplyList(params: any) {
  return request('/RefundApply/index', {
    method: 'POST',
    data: params,
  });
}

// 拒绝退款
export async function refund(params: any) {
  return request('/RefundApply/refund', {
    method: 'POST',
    data: params,
  });
}

// 退款操作(可提现账户)
export async function refundMoneyAndStatus(params: any) {
  return request('/RefundApply/refundMoneyAndStatus', {
    method: 'POST',
    data: params,
  });
}

// 退款操作(可消费账户)
export async function refundAvailMoney(params: any) {
  return request('/RefundApply/refundAvailMoney', {
    method: 'POST',
    data: params,
  });
}
